#ifndef __EVENTMGR_H__
#define __EVENTMGR_H__

class MEventObserver
{
public:
	virtual int EventHandle() = 0;

};

class __declspec(dllexport) CEventMgr/* : public MEventObserver*/
{
public:
	CEventMgr(void);
	~CEventMgr(void);
public:
	int SetEventMonitor(MEventObserver* pEventObserver);
	int DeleteEventMonitor();

	int StartUpThread();
private:
	static void MessageHandleLoop();
	static void TimeOutEvent();
private:
	MEventObserver* m_pEventObserver;
	int m_nTimeOut;
};
#endif // __EVENTMGR_H__